START
LDN stk,R31
LOAD R31,R30
OUT R30,2
IN 1,R1
IN 1,R2
IN 1,R3
PUSH R1
PUSH R2
PUSH R3
PUSH R1
PUSH R2
PUSH R1
PUSH R2
PUSH R3
PUSH R1
POP R4
POP R5
POP R6
OUT R4,2
OUT R5,2
OUT R6,2
HALT

stk: DS 10
